package com.fxd.serviceorder.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @author xudongfu
 * @date 2025/06/12
 */
@Component
public class XTokenRequestInterceptor implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate requestTemplate) {

        requestTemplate.header("X-Token", UUID.randomUUID().toString());
    }
}
